package com.hx.er.service.admin.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;

import com.hx.er.bean.base.UserBean;
import com.hx.er.bean.detail.UserDetailBean;
import com.hx.er.common.entity.LoginInfoEntity;
import com.hx.er.dao.IContactDao;
import com.hx.er.dao.IUserDao;
import com.hx.er.service.admin.IAdminUserService;
import com.hx.er.service.base.ErBaseService;

public class AdminUserServiceImpl extends ErBaseService implements IAdminUserService {

	@Autowired
	private IUserDao userDao;

	@Autowired
	private IContactDao contactDao;

	@Override
	public UserBean getUserAlive(UserBean userBean) {
		return this.userDao.getUserAlive(userBean);
	}

	@Override
	public List<UserDetailBean> getUserDetailList(Map<String, Object> conditions) {
		return this.userDao.getUserDetailList(conditions);
	}

	@Override
	public int getUserDetailCount(Map<String, Object> conditions) {
		return this.userDao.getUserDetailCount(conditions);
	}

	@Override
	public List<Map<Integer, Integer>> getFlowStatusCount(Map<String, String> conditions) {
		return this.contactDao.getFlowStatusCount(conditions);
	}

	@Override
	public void insertLoginInfoWithoutId(LoginInfoEntity loginInfoEntity) {
		this.userDao.insertLoginInfoWithoutId(loginInfoEntity);
	}

	@Override
	public List<LoginInfoEntity> getLoginInfoList(LoginInfoEntity loginInfoEntity) {
		return this.userDao.getLoginInfoList(loginInfoEntity);
	}
}
